﻿@{
    ViewData["Title"] = "Reigster";
}
@model RegisterViewModel; 

<h2>@ViewData["Title"]</h2>
<h3>@ViewData["Message"]</h3>

<div class="row">
    <div class="col-md-4">
        <form  method="post" asp-route-returnUrl="@ViewData["ReturnUrl"]">
            <h4>Create a new account.</h4>
            <hr />
           <div class="text-danger" asp-validation-summary="All"></div>
            <div class="form-group">
                <label asp-for="UserName"></label>
                <input asp-for="UserName" class="form-control" />
                <span asp-validation-for="UserName" class="text-danger"></span>
               
            </div>
            <div class="form-group">
                <label asp-for="Password" ></label>
                <input asp-for="Password" type="password" class="form-control" />
                <span asp-validation-for="Password" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="PasswordConfirm"></label>
                <input asp-for="PasswordConfirm" type="password" class="form-control" />
                <span asp-validation-for="PasswordConfirm" class="text-danger"></span>
            </div>

            

            <button type="submit" class="btn btn-default">Register</button>
        </form>
    </div>
</div>

@section Scripts
    {
    @await Html.PartialAsync("_ValidationScriptsPartial")
}